package com.yungu.swift.system.sys.dao;

import com.yungu.swift.base.mapper.IMapper;
import com.yungu.swift.system.sys.model.dto.SysBusinessCityDto;
import com.yungu.swift.system.sys.model.dto.SysCityDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * SystemBusinessCityMapper数据库操作接口类
 **/

public interface SysBusinessCityMapper extends IMapper<SysBusinessCityDto> {
    /**
     * getOpenedCity
     *
     * @param params Map
     * @return List<SysCityDto>
     */
    List<SysCityDto> getOpenedCity(Map<String, Object> params);

    /**
     * 删除代理和企业的开通城市
     *
     * @param businessUuid
     * @param cityUuid
     * @return
     */
    int removeBusinessCity(@Param("businessUuid") String businessUuid, @Param("cityUuid") String cityUuid);

    /**
     * 查找该城市系统是否有开通
     *
     * @param cityUuid String
     * @return List<Integer>
     */
    List<Integer> isRemoveRegisterGift(@Param("cityUuid") String cityUuid);
}